package edu.tsinghua.ddb.beans;

import java.util.Set;

public class QueryTree {
	private int type;
	private Set<String> targets;//for project
	private Set<Predicate> predicates;//for join
	private String leaf;//for lead table
	/**
	 * @return the type
	 */
	public int getType() {
		return type;
	}
	/**
	 * @param type the type to set
	 */
	public void setType(int type) {
		this.type = type;
	}
	/**
	 * @return the targets
	 */
	public Set<String> getTargets() {
		return targets;
	}
	/**
	 * @param targets the targets to set
	 */
	public void setTargets(Set<String> targets) {
		this.targets = targets;
	}
	/**
	 * @return the predicates
	 */
	public Set<Predicate> getPredicates() {
		return predicates;
	}
	/**
	 * @param predicates the predicates to set
	 */
	public void setPredicates(Set<Predicate> predicates) {
		this.predicates = predicates;
	}
	/**
	 * @return the leaf
	 */
	public String getLeaf() {
		return leaf;
	}
	/**
	 * @param leaf the leaf to set
	 */
	public void setLeaf(String leaf) {
		this.leaf = leaf;
	}
}
